﻿namespace MyCompany.MyProject.WebApi.ModelDto.ModuleDto;

/// <summary>
/// 接口模块视图模型
/// </summary>
public class ModulesVo
{
    /// <summary>
    /// 主键
    /// </summary>
    public long Id { get; set; }
    /// <summary>
    /// 父节点id
    /// </summary>
    public long ParentId { get; set; }

    /// <summary>
    /// 是否删除
    /// </summary>
    public bool? IsDeleted { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// 菜单连接地址
    /// </summary>
    public string? LinkUrl { get; set; }

    /// <summary>
    /// 区域名称
    /// </summary>
    public string? Area { get; set; }

    /// <summary>
    /// 控制器名称
    /// </summary>
    public string? Controller { get; set; }

    /// <summary>
    /// Action 名称
    /// </summary>
    public string? Action { get; set; }

    /// <summary>
    /// 图标
    /// </summary>
    public string? Icon { get; set; }

    /// <summary>
    /// 菜单编码
    /// </summary>
    public string? Code { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int OrderSort { get; set; }

    /// <summary>
    /// 描述
    /// </summary>
    public string? Description { get; set; }

    /// <summary>
    /// 是否是右侧菜单
    /// </summary>
    public bool IsMenu { get; set; }

    /// <summary>
    /// 是否激活
    /// </summary>
    public bool Enabled { get; set; }

    /// <summary>
    /// 创建ID
    /// </summary>
    public long? CreateId { get; set; }
    /// <summary>
    /// 创建者
    /// </summary>
    public string? CreateBy { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; } = DateTime.Now;
    /// <summary>
    /// 修改ID
    /// </summary>
    public long? ModifyId { get; set; }
    /// <summary>
    /// 修改者
    /// </summary>
    public string? ModifyBy { get; set; }
    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? ModifyTime { get; set; }
}
